package com.ruoyi.project.manhua.comment.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 漫画评论
 * 对象 mh_comment
 *
 * @author yuan
 * @date 2021-01-28
 */
public class MhComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 漫画id
     */
    @Excel(name = "漫画id")
    private Long nameId;


    /**
     * 上级id 0为顶级
     */
    @Excel(name = "上级id 0为顶级")
    private Long superior;

    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 评论用户名称
     */
    @Excel(name = "评论用户名称")
    private String userName;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String head;

    /**
     * 点赞
     */
    @Excel(name = "点赞")
    private Integer give;

    @Excel(name = "类型 1 一级评论，2二级评论，3三级评论")
    private String type;

    public MhComment() {
    }

    public MhComment(Long id, Integer give) {
        this.id = id;
        this.give = give;
    }

    public MhComment(Long nameId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setNameId(Long nameId) {
        this.nameId = nameId;
    }

    public Long getNameId() {
        return nameId;
    }

    public void setSuperior(Long superior) {
        this.superior = superior;
    }

    public Long getSuperior() {
        return superior;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getHead() {
        return head;
    }

    public void setGive(Integer give) {
        this.give = give;
    }

    public Integer getGive() {
        return give;
    }

    @Override
    public String toString() {
        return "MhComment{" +
                "id=" + id +
                ", nameId=" + nameId +
                ", superior=" + superior +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", head='" + head + '\'' +
                ", give=" + give +
                ", type='" + type + '\'' +
                '}';
    }
}
